﻿<phone:PhoneApplicationPage 
    x:Class="SLRTHackathon.Views.CarHelperPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Panorama Title="Auto Mobile" Name="CarHelperPanorama">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="/SLRTHackathon;component/Resources/Images/wallpaper2.jpg"/>
            </controls:Panorama.Background>
            <!--Panorama item one-->
            <controls:PanoramaItem Header="Menu">
                <Grid>
                    <ListBox FontSize="35">
                        <ListBoxItem Content="Insurance" Tap="ListBoxItem_Tap"/>
                        <ListBoxItem Content="Technical Revision" Tap="ListBoxItem_Tap_1" />
                        <ListBoxItem Content="Vignette" Tap="ListBoxItem_Tap_2"/>
                        <ListBoxItem Content="Tire Change" Tap="ListBoxItem_Tap_3"/>
                        <ListBoxItem Content="Federal Taxes" Tap="ListBoxItem_Tap_4" />
                        <ListBoxItem Content="Custom" Tap="ListBoxItem_Tap_5"/>
                    </ListBox>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item two-->
            <controls:PanoramaItem Header="Insurances">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel Orientation="Vertical" Grid.Row="0">
                            <TextBlock Text="Normal Insurance" Foreground="Orange"/>
                            <StackPanel Name="InsurenceStackPanel" Orientation="Vertical">
                                  
                            </StackPanel>
                            <Button Content="+" Click="GoToAddInsurenceButton_Click" BorderBrush="Transparent" HorizontalAlignment="Right" Height="100" Width="100" FontFamily="Arial" FontSize="50"/>
                        </StackPanel>

                        <StackPanel Orientation="Vertical" Grid.Row="1">
                            <TextBlock Text="Extended Insurance" Foreground="Orange"/>
                            <StackPanel Name="ExtendedInsurenceStackPanel" Orientation="Vertical">
                                <Button Content="Extended Insurance"/>
                            </StackPanel>
                            <Button Content="+" Click="GoToAddExtendedButton_Click" BorderBrush="Transparent" HorizontalAlignment="Right" Height="100" Width="100" FontFamily="Arial" FontSize="50"/>
                         </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item three-->
            <controls:PanoramaItem Header="Tehnical Inspection">
                <Grid>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item four-->
            <controls:PanoramaItem Header="Vignette">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel Orientation="Vertical" Grid.Row="0">
                            <TextBlock Text="Vignette" Foreground="Blue"/>
                            <StackPanel Name="VignetteStackPanel" Orientation="Vertical">

                            </StackPanel>
                            <TextBlock Text="Add New "/>
                            <Button Content="Add Vignette" Click="GoToAddVignetteButton_Click"/>
                            <Button Content="Go Online" Click="GoOnlineVignetteButton_Click"/>
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item five-->
            <controls:PanoramaItem Header="Tier Change">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel Orientation="Vertical" Grid.Row="0">
                            <TextBlock Text="Tiers" Foreground="Blue"/>
                            <StackPanel Name="TiersStackPanel" Orientation="Vertical">

                            </StackPanel>
                            <Button Content="Changed"/>
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item six-->
            <controls:PanoramaItem Header="Federal Taxes">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel Orientation="Vertical" Grid.Row="0">
                            <TextBlock Text="Federal Tax" Foreground="Blue"/>
                            <StackPanel Name="FederalTaxStackPanel" Orientation="Vertical">

                            </StackPanel>
                            <Grid>
                                <StackPanel>
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />                                            
                                        </Grid.RowDefinitions>

                                        <TextBlock Name="BrandTextBlock" Text="Brand: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0"/>
                                        <TextBlock Name="BrandCarTextBlock" Text="" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1"/>
                                        <TextBlock Name="ModelTextBlock" Text="Model: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0"/>
                                        <TextBlock Name="ModelCarTextBlock" Text="" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1"/>
                                        <TextBlock Name="CIDTextBlock" Text="CID: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0"/>
                                        <TextBlock Name="CIDCarTextBlock" Text="" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1"/>
                                        <TextBlock Name="TaxTextBlock" Text="Federal Taxes: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0"/>
                                        <TextBlock Name="TaxCarTextBlock" Text="" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1"/>
                                    </Grid>
                                </StackPanel>
                            </Grid>                       
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item seven-->
            <controls:PanoramaItem Header="Custom">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel Orientation="Vertical" Grid.Row="0">
                            <TextBlock Text="Custom" Foreground="Blue"/>
                            <StackPanel Name="CustomStackPanel" Orientation="Vertical">

                            </StackPanel>
                            <TextBlock Text="Add New "/>
                            <Button Content="Add Custom" Click="GoToAddCustomButton_Click"/>
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

        </controls:Panorama>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
